<%- include('../includes/header') %>
</head>
<body>
    <%- include('../includes/navigation') %>
    <main>
        <% if( orders.length > 0 ) { %>
        <ul class="order-list">
            <% for(order of orders) { %>
            <hr>
            <li class="order-item">
                <h2><%= order.id %></h2>
                <ul>
                    <% for( p of order.products ) { %>
                    <li>
                        <%= p.title %>--<%= p.orderItem.quantity %>
                    </li>
                    <% } %>
                </ul>
            </li>
            <% } %>
        </ul>
        <% } else { %>
        <h1>没有任何订单...</h1>
        <% } %>
    </main>
<%- include('../includes/end') %>